﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VipCo.Entities;
using VipCo.Data;
using System.Data;
using System.Threading;

public partial class DaiLyTinh : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HienThiTinTuc();
        }
    }

    /// <summary>
    /// Hiển thị Loại tin
    /// </summary>
    private void HienThiTinTuc()
    {
        int TotalRows = 0;
        string WhereClause = "TrangThai = 1 and IdNhomTin=" + Common.DaiLyTinh;
        TList<TinTuc> TListTinTuc = DataRepository.TinTucProvider.GetPaged(WhereClause, "NgayCapNhat DESC", 0, 0, out TotalRows);
        dlTinTuc.DataSource = TListTinTuc;
        dlTinTuc.DataBind();
        
    }
}